package com.recipedb.recipedb.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@Entity
@Table(name = "recipe_ingredient")
@IdClass(RecipeIngredientId.class)
public class RecipeIngredient {

    @Id
    private Long recipeId;

    @Id
    private Long ingredientId;

    @Column(nullable = false)
    private BigDecimal amount;
}